package chapter15;

/**
 * @author : DuJiabao
 * @Date : 2021/3/4 11:17
 * @Project : thinking_in_java
 * @File : null.java
 * @Desc :
 */
public class TwoTuple<A, B> {
  public final A first;
  public final B second;

  public TwoTuple(A first, B second) {
    this.first = first;
    this.second = second;
  }

  @Override
  public String toString() {
    return "(" + first + "," + second + ")";
  }

  public static void main(String[] args) {
    TwoTuple<Fruit, Fruit> fruitFruitTwoTuple = new TwoTuple<>(new Fruit(), new Fruit());
  }
}
